package com.example.zhugenew;

import com.example.zhugenew.bean.newhouses.NewHouseBlockBean;
import com.example.zhugenew.bean.newhouses.NewHouseEvidenceBean;
import com.example.zhugenew.bean.newhouses.NewHouseHotListBean;
import com.example.zhugenew.bean.newhouses.NewHouseImageBean;
import com.example.zhugenew.bean.newhouses.NewListBean;

import java.util.HashMap;

import io.reactivex.Flowable;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

public interface ApiService {
    String headUrl = "https://api.zhuge.com/";

    //全部楼盘
    @POST("newhouse/api/v2/house_term/getshortcutentry")
    @FormUrlEncoded
    Flowable<NewHouseBlockBean> getBlockData(@FieldMap HashMap<String, Object> params);

    //横幅
    @POST("newhouse/ad/newhouse/house_list/app_hengfu")
    @FormUrlEncoded
    Flowable<NewHouseImageBean> getImageData(@FieldMap HashMap<String, Object> params);

    //最新取证
    @POST("newhouse/api/v2/sell_control/getsellterm")
    @FormUrlEncoded
    Flowable<NewHouseEvidenceBean> getEvidenceData(@FieldMap HashMap<String, Object> params);

    //    https://api.zhuge.com/newhouse/api/v2/house_term/getshortcutentrytwo?
    //楼盘热榜
    @POST("newhouse/api/v2/house_term/getshortcutentrytwo")
    @FormUrlEncoded
    Flowable<NewHouseHotListBean> getHotlistData(@FieldMap HashMap<String, Object> params);
    //楼盘热榜
    @POST("newhouse/api/v2/house/gethouselist")
    @FormUrlEncoded
    Flowable<NewListBean> getHouselistData(@FieldMap HashMap<String, Object> params);
}